#! /usr/bin/python
# coding: utf-8

from Tkinter import *

root = Tk()
v = IntVar()
def callCheckbutton():
    print v.get()

Checkbutton(root, text='python', variable=v, command=callCheckbutton).pack()
root.mainloop()
